package softwaretest.repository;

import softwaretest.Domain.CameraData; // 假设您已经创建了 CameraData 实体
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CameraDataRepository extends JpaRepository<CameraData, Long> {
    // 根据需要添加自定义查询方法
    List<CameraData> findTop5ByOrderByCreatedAtDesc();
}